package com.eunion.web.common.vo.jpa;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

/**
 * 排序用.
 * 
 * 
 * @version 2015-9-12
 */
public class SpecOrderVo {

    /**
     * 值域.
     */
    private String field;

    /**
     * 升序.
     */
    private boolean asc = true;

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }

    public SpecOrderVo(String field, boolean asc) {
        super();
        this.field = field;
        this.asc = asc;
    }

    public SpecOrderVo(String field) {
        super();
        this.field = field;
    }

    public SpecOrderVo() {
        super();
    }

    /**
     * get 值域 .
     * 
     * @return the field
     */
    public String getField() {
        return field;
    }

    /**
     * set 值域.
     * 
     * @param field
     *            the field to set
     */
    public void setField(String field) {
        this.field = field;
    }

    /**
     * get 升序. .
     * 
     * @return the asc
     */
    public boolean isAsc() {
        return asc;
    }

    /**
     * set 升序..
     * 
     * @param asc
     *            the asc to set
     */
    public void setAsc(boolean asc) {
        this.asc = asc;
    }

}
